function [ ] = set_globals( )

cpu_pal = 2 * get_sampling_fq('pal');
cpu_ntsc = 2 * get_sampling_fq('ntsc');

pal_frames = 50;
ntsc_frames = 59.94;

pal_lines_overscan = 288;
ntsc_lines_overscan = 242;

pal_lines_interlaced = 625;
ntsc_lines_interlaced = 525;

% podczas generacji kazdej linii obrazku pobierane sa 4 slowa,czyli
% dwie probki na kazdy kanal.
samples_per_line = 2;

% zgodnie z dokumentacja to tez jest pewnie zle liczone.
sampling_freq_pal = samples_per_line * pal_lines_interlaced / 2 * pal_frames;
sampling_freq_ntsc = samples_per_line * ntsc_lines_interlaced / 2 * ntsc_frames;
sampling_freq_real = 28867

cylces_per_sample_real_pal = cpu_pal / sampling_freq_real / 2;
cylces_per_sample_real_ntsc = cpu_ntsc / sampling_freq_real / 2;

sampling_freq_real_min_pal = cpu_pal / 65535 / 2;
sampling_freq_real_min_ntsc = cpu_ntsc / 65535 / 2;

end

